#include <stdio.h>

int main() {
    int N;
    scanf("%d", &N); 
    
    int a = 1;  
    
    for (int i = 1; i < N; i++) {
        a = (a + 1) * 2; 
    }
    
    printf("%d\n", a);
    
    return 0;
}
